package com.iflytek.service;

import com.iflytek.pojo.Equipment;

import java.util.List;

public interface EquipmentService {

    /**
     * 新增
     *
     * @param equipment
     * @return
     */
    int addEquipment(Equipment equipment);


    /**
     * 编辑
     *
     * @param equipment
     * @return
     */
    int updateEquipment(Equipment equipment);


    /**
     * 根据id查询一条记录
     *
     * @param eid
     * @return
     */
    Equipment getOne(Integer eid);

    /**
     * 查询所有
     *
     * @return
     */
    List<Equipment> list();


}
